package cc.rengu.igas.momp.facade.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * 订单明细对象
 *
 * @author Jinan Liu
 * @date 2020/3/13 23:15
 */
public class PaymentOrderInfoBean implements Serializable {

    /**
     * 商户号
     */
    private String mchntNo;
    /**
     * 订单金额
     */
    private String orderAmt;
    /**
     * 减免优惠达标金额
     */
    private String criteria;
    /**
     * 原订单金额
     */
    private String origOrderAmt;

    public String getMchntNo() {
        return mchntNo;
    }

    public void setMchntNo(String mchntNo) {
        this.mchntNo = mchntNo;
    }

    public String getOrderAmt() {
        return orderAmt;
    }

    public void setOrderAmt(String orderAmt) {
        this.orderAmt = orderAmt;
    }

    public BigDecimal getOrderAmtNumber() {
        return new BigDecimal(getOrderAmt()).setScale(2, RoundingMode.HALF_UP);
    }

    public String getCriteria() {
        return criteria;
    }

    public void setCriteria(String criteria) {
        this.criteria = criteria;
    }

    public String getOrigOrderAmt() {
        return origOrderAmt;
    }

    public void setOrigOrderAmt(String origOrderAmt) {
        this.origOrderAmt = origOrderAmt;
    }
}
